package com.ysx.attendance.dao;

import com.ysx.attendance.bean.DelayBean;
import com.ysx.attendance.dto.CakeDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttendanceDao {


    /**
     * 保存考勤数据
     * @param userId
     * @param classId
     * @param delayDate
     * @return
     */
    int addAttendance(@Param("userId") Integer userId,
                      @Param("classId") Integer classId,
                      @Param("delayDate") String delayDate);


    List<CakeDTO> getCake(Integer classId);


    List<DelayBean> getDelayList();

    List<DelayBean> getDelayListPage(@Param("begin") int begin, @Param("end")int end);


    int getDelayListPageCounter();

     int deleteByIds(List<Integer> ids);

}
